#!/usr/bin/ruby -w

$:.unshift(File.expand_path(File.dirname(__FILE__))) unless
    $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))

require_relative './script/pods_plugin/opaypods'


use_frameworks!

_working_path __dir__
_project 'MSPopupsManager'

platform :ios, '12.0'
enviroment 'main'
#enviroment 'app-store'

target 'MSPopupsManager_Example' do
  pod 'MSPopupsManager', :path => '../'
  pod 'Masonry'
end

#post_install do |installer|
#  plugin_installer installer
#end

post_install do |installer|
  plugin_installer installer
  installer.generated_projects.each do |project|
    project.targets.each do |target|
      target.build_configurations.each do |config|
        #config.build_settings["DEVELOPMENT_TEAM"] = "4592996NR6"
        config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
      end
    end
  end
end
